﻿-- ================================================
-- Template generated from Template Explorer using:
-- Create Procedure (New Menu).SQL
--
-- Use the Specify Values for Template Parameters 
-- command (Ctrl-Shift-M) to fill in the parameter 
-- values below.
--
-- This block of comments will not be included in
-- the definition of the procedure.
-- ================================================
USE [WarehouseManagement]
GO

SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Anhdq
-- Create date: 3/17/2011
-- Description:	This stored procedure use to get all Employment Type records
-- =============================================
ALTER PROCEDURE [GetCollectionEmploymentType]
(
@IsShowAll bit=0
)
AS
BEGIN
	SELECT 
			e.[EmploymentTypeID],
			e.[EmploymentTypeCode],
			e.[EmploymentType],
			e.[IsDelete],
			e.[BriefDescription],
			e.[FullDescription]
	FROM 
			[EmploymentType] e
	WHERE 
			e.IsDelete = 0 OR e.[IsDelete] = @IsShowAll
			
END

GO

/*
USE WarehouseManagement
GO

EXEC [GetCollectionEmploymentType]

*/